home *** CD-ROM | disk | FTP | other *** search
/ Practical Web Pages 2004 September / PracticalWebPages-WPG13-09-2004-Coverdisc.iso / pc / Software / Toolkit / Sothink SWF Quicker 1.5 / data1.cab / Public_Files / Classes / Key.as < prev    next >
Encoding:
Text File  |  2004-06-14  |  3.3 KB  |  29 lines

  1. class Key
  2. {
  3.     var BACKSPACE                                                        // Constant associated with the key code value for the Backspace key (8).
  4.     var CAPSLOCK                                                         // Constant associated with the key code value for the Caps Lock key (20).
  5.     var CONTROL                                                          // Constant associated with the key code value for the Control key (17).
  6.     var DELETEKEY                                                        // Constant associated with the key code value for the Delete key (46).
  7.     var DOWN                                                             // Constant associated with the key code value for the Down Arrow key (40).
  8.     var END                                                              // Constant associated with the key code value for the End key (35).
  9.     var ENTER                                                            // Constant associated with the key code value for the Enter key (13).
  10.     var ESCAPE                                                           // Constant associated with the key code value for the Escape key (27).
  11.     var HOME                                                             // Constant associated with the key code value for the Home key (36).
  12.     var INSERT                                                           // Constant associated with the key code value for the Insert key (45).
  13.     var LEFT                                                             // Constant associated with the key code value for the Left Arrow key (37).
  14.     var PGDN                                                             // Constant associated with the key code value for the Page Down key (34).
  15.     var PGUP                                                             // Constant associated with the key code value for the Page Up key (33).
  16.     var RIGHT                                                            // Constant associated with the key code value for the Right Arrow key (39).
  17.     var SHIFT                                                            // Constant associated with the key code value for the Shift key (16).
  18.     var SPACE                                                            // Constant associated with the key code value for the Spacebar (32).
  19.     var TAB                                                              // Constant associated with the key code value for the Tab key (9).
  20.     var UP                                                               // Constant associated with the key code value for the Up Arrow key (38).
  21.  
  22.     function addListener(newListener)                                    // Registers an object to receive notification when the onKeyDown and onKeyUp methods are invoked.
  23.     function getAscii()                                                  // Returns the ASCII value of the last key pressed.
  24.     function getCode()                                                   // Returns the virtual key code of the last key pressed.
  25.     function isDown(keycode)                                             // Returns true if the key specified in the parameter is pressed.
  26.     function isToggled(keycode)                                          // isToggled()
  27.     function removeListener(listener)                                    // Removes an object that was previously registered with Key.addListener().
  28. }
  29.